Component({
    properties: {
    },
    data: {
        loadingStatus: 0,
        loadingStatusTxt: {
            0: '数据加载中...',
            1: '数据加载完成',
            2: '没有更多数据了',
            3: '上拉加载更多数据',
            4: '数据加载失败，请稍后重试',
            6: "空空如也"
        }
    },
    ready() {},
    methods: {
        setLoadingStatus(status, txt) {
            this.setData({
                loadingStatus: status
            })
            if (txt) {
                let str = `loadingStatusTxt.${status}`;
                this.setData({
                    [str]: txt
                })
            }
        }
    }
})